projects
/
gtk+3.0.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
213108b
)
status icon: Prevent size dithering
author
Matthias Clasen
<mclasen@redhat.com>
Sat, 5 Mar 2016 17:15:42 +0000
(12:15 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Sat, 5 Mar 2016 17:15:42 +0000
(12:15 -0500)
We're seeing loops where the size of some status icons constantly
dithers between 24 and 25. Since I couldn't track down exactly
where the one extra pixel comes from, just stop reacting
to single-pixel size changes.
https://bugzilla.gnome.org/show_bug.cgi?id=758893
gtk/deprecated/gtkstatusicon.c
patch
|
blob
|
history
diff --git
a/gtk/deprecated/gtkstatusicon.c
b/gtk/deprecated/gtkstatusicon.c
index 29ccf77d235020955a007992415ff018bf7a6943..a29c1b7ede356e11ce853a4e4397610dc22cd5da 100644
(file)
--- a/
gtk/deprecated/gtkstatusicon.c
+++ b/
gtk/deprecated/gtkstatusicon.c
@@
-1465,7
+1465,7
@@
gtk_status_icon_size_allocate (GtkStatusIcon *status_icon,
else
size = allocation->width;
- if (priv->size
!=
size)
+ if (priv->size
- 1 > size || priv->size + 1 <
size)
{
priv->size = size;